package com.es.factory;


import com.es.bean.Student;
import org.springframework.beans.factory.FactoryBean;

public class StudentFactory implements FactoryBean<Student> {

    @Override
    public Student getObject()  {
        return new Student();
    }

    @Override
    public Class<?> getObjectType() {
        return getObject().getClass();
    }
}
